<template>
  <el-button @click="test2">我是test2</el-button>
</template>

<script>
export default {
  name: "test2",
  data(){

  },
  methods:{
    test2(){
      window.opener.postMessage('我是test2的信息', '*');
    }
  }
}
</script>

<style scoped>

</style>
